package com.mycompany.app.hr.pa.dao.impl;

import java.util.Date;
import java.util.List;

import com.mycompany.app.dao.hibernate.GenericDaoHibernate;
import com.mycompany.app.hr.pa.dao.IEmployeeDao;
import com.mycompany.app.hr.pa.model.Employee;
import com.mycompany.app.hr.pa.model.dto.SuperiorInfoDTO;

public class EmployeeDaoHibernate extends GenericDaoHibernate<Employee, String>
        implements IEmployeeDao {

    public EmployeeDaoHibernate() {

        super(Employee.class);
    }

    public EmployeeDaoHibernate(Class<Employee> persistentClass) {

        super(persistentClass);
        // TODO Auto-generated constructor stub
    }


    @SuppressWarnings("unchecked")
    public List<SuperiorInfoDTO> getSuperiors(String gid) {

        return this.getHibernateTemplate().findByNamedQuery(
                "employee.getSuperiors", gid);

    }

    public Employee isValidDirectSubordinate(String subordinateGid,
            String superGid, Date date) {

        // TODO Auto-generated method stub
        return null;
    }
}
